package com.bootx.service;

import com.bootx.common.Page;
import com.bootx.common.Pageable;
import com.bootx.entity.LotteryRecord;

import java.util.List;

/**
 * @author black
 */
public interface LotteryRecordService extends BaseService<LotteryRecord,Long> {
    LotteryRecord predict(Long lotteryCode,Long sn);

    LotteryRecord findBySn(Long sn);

    LotteryRecord findLatestRecord(Long lotteryCode);

    void batchSave(List<LotteryRecord> history);

    Page<LotteryRecord> findPage(Pageable pageable, String date, String code);

    void addCache(LotteryRecord lotteryRecord);
}
